Popover: Clarify/guard out rect of get_pointing_to
authorDaniel Boles <dboles.src@gmail.com>
Sun, 11 Jun 2023 10:37:45 +0000 (11:37 +0100)
committerSimon McVittie <smcv@debian.org>
Wed, 8 Nov 2023 16:30:21 +0000 (16:30 +0000)
commit676929b2bfb7e404d1cf018f26c4126b821729ca
tree9a2dc259492d69b61ce6ab9bd7205659aad0574f
parent0bbf351f6418973e977fb167dfcb898dae5b2c37
Popover: Clarify/guard out rect of get_pointing_to

Clarify that we zero out the widget coords and only keep its dimensions.

If we have no widget to fall-back to, memset to 0 the output @rect since
we return FALSE whether or not we have widget, so protect users from not
knowing if there was a widget and possibly accessing uninitialised ints.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/893#note_1766079
Origin: 3.24.39, commit:a6d40b610be6acb635d8732c11bb6d866bf2e95d

Gbp-Pq: Name Popover-Clarify-guard-out-rect-of-get_pointing_to.patch
gtk/gtkpopover.c